/*
 * @Author: wangcb
 * @Email: wangcbgg@163.com
 * @Date: 2021-10-21 17:28:54
 * @LastEditTime: 2021-10-21 17:29:51
 * 取消动画帧
 */
const cancelAFrame = (() => {
    return window.cancelAnimationFrame // @ts-ignore
        || window.webkitCancelAnimationFrame // @ts-ignore
        || window.webkitCancelRequestAnimationFrame // @ts-ignore
        || window.mozCancelRequestAnimationFrame // @ts-ignore
        || window.oCancelRequestAnimationFrame // @ts-ignore
        || window.msCancelRequestAnimationFrame
        || (id => window.clearTimeout(id));
})();
export default cancelAFrame;
